<template>
    <div id="app">
        <!--使用router-view标签给vue组件的跳转提供一个容器-->
        <router-link to="/">Home</router-link>
        |
        <router-link to="/about">About</router-link>
        |
        <router-link to="/test">Test</router-link>
        |
        <router-link to="/for">For</router-link>
        |
        <router-link to="/event">Event</router-link>
        |
        <router-link to="/cal">cal</router-link>
        |
        <router-link to="/axios">axios</router-link>
        |
        <router-link to="/moment">moment</router-link>
        |
        <router-link to="/command">vue常用指令</router-link>
        |
        <router-link to="/layout">iview的布局</router-link>
        |
        <router-link to="/autoCompleteTest">iview自动完成输入框</router-link>
        |
        <router-link to="/fileManager">文件管理</router-link>
        |
        <router-link to="/treeDemo">tree组件使用</router-link>
        |
        <router-view/>
        <img v-show="false" alt="Vue logo" src="./assets/logo.png">

        <HelloWorld v-show="false" msg="这个值从父页面传到了组件中"/>
    </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
    name: 'app',
    components: {
        //这是简写形式, 完整的形式为: `HelloWorld: HelloWorld`
        HelloWorld: HelloWorld
    }
}
</script>

<style>
#app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    margin-top: 60px;
}
</style>
